<template>
  <h1>TestD</h1>
  <h1 v-text="id"></h1>
</template>

<script>
import {computed, ref} from "vue";
import {useRoute} from "vue-router";

export default {
  name: "TestD",
  setup() {
    const id = ref(computed(function () {
      return useRoute().params.id;
    }));
    return {
      id
    }
  }
}
</script>

<style scoped>

</style>